<template>
	<view style="text-align: center;">
		<view style="font-size: 30px;">{{pointData.content}}</view>
		<rich-text :nodes="pointData.detail"></rich-text>
	</view>
</template>

<script setup>
	import {
		ref,
		onMounted
	} from 'vue';
	import {
		onLoad,
	} from "@dcloudio/uni-app";
	const pointId = ref('')
	const pointData = ref({})
	onLoad((options) => {
		if (options.id) {
			pointId.value = options.id
		}
	})
	onMounted(() => {
		uni.request({
			url: import.meta.env.VITE_APP_BASE_API + '/point/ua/getPointById?id=' + pointId.value,
			method: 'GET',
			success(res) {
				pointData.value = res.data.data
			}
		})
	})
</script>

<style>

</style>